[✨ Enhanced Sample] Implement Generative Expand (OutPainting) with Imagen 3.0#113
Open
madebymozart wants to merge 3 commits intomainfrom
Open
[✨ Enhanced Sample] Implement Generative Expand (OutPainting) with Imagen 3.0#113madebymozart wants to merge 3 commits intomainfrom
madebymozart wants to merge 3 commits intomainfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces the Generative Expand feature, a powerful implementation of outpainting that leverages the advanced capabilities of the Imagen 3.0 model. This new functionality empowers users to creatively extend the canvas of a generated image, seamlessly adding new content that is contextually consistent with the original.
The core objective is to allow users to transform a standard-sized generation into a larger, more comprehensive scene—whether it's widening a landscape, adding more context to a character portrait, or simply exploring what lies beyond the original frame.
Changes Introduced
Technical Details & Implementation
The outpainting process works by sending the original image along with the desired new canvas dimensions to the model. The original image acts as a contextual prompt, and Imagen 3.0 generates the pixels for the new, empty regions.
A key implementation detail is the introduction of a resolution cap.
4096x4096pixels.How to Test 🧪
3000x3000).4096x4096.Screenshots
| Before Expansion | After Expansion |